package com.practice.demo.Controller;

import com.practice.demo.Model.UserBean;
import com.practice.demo.Service.UserService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

@Controller
public class UserController {
//    @Autowired
//  private UserService service;
//@Qualifier("u1,u2")
    @Resource(name="userBean1")

    @Autowired
   // private UserBean u1;
    private UserBean userBean;
//    public void hello2() {
//        System.out.println("这是UserController");
//       // service.hello();
//       // System.out.println(u1);
//        System.out.println(userBean);
//    }
}
